package com.hdoit.ares.logical.acc.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.hdoit.ares.logical.acc.dao.IRedEnvelopeRecordDao;
import com.hdoit.ares.logical.acc.model.RedEnvelopeRecord;
import com.hdoit.ares.logical.acc.service.IRedEnvelopeRecordService;
/**
 * @author      xieqixiu
 * @email       
 * @createtime  2018年01月03日 11:04:54
 * @comment
 */
@Component
public class RedEnvelopeRecordServiceImpl extends SuperService<RedEnvelopeRecord> implements IRedEnvelopeRecordService{

	private IRedEnvelopeRecordDao redEnvelopeRecordDao;
	
	
	public IRedEnvelopeRecordDao getRedEnvelopeRecordDao() {
		return redEnvelopeRecordDao;
	}

	@Resource
	public void setRedEnvelopeRecordDao(IRedEnvelopeRecordDao redEnvelopeRecordDao) {
		this.redEnvelopeRecordDao = redEnvelopeRecordDao;
	}


	@Override
	public RedEnvelopeRecord queryModelByJoinId(String receiverId,String joinId, String refreeId,String level,String category) {
		
		return redEnvelopeRecordDao.queryModelByJoinId(receiverId,joinId, refreeId, level,category);
	}

	@Override
	public RedEnvelopeRecord queryModelByCategory(String receiverId,String joinId,String refreeId, String category) {
		
		return redEnvelopeRecordDao.queryModelByCategory(receiverId,joinId, refreeId, category);
		
	}

}